package classconverstation.cscl.ist.psu.edu.client.services;

import java.util.ArrayList;

import classconverstation.cscl.ist.psu.edu.client.messengers.Course;
import classconverstation.cscl.ist.psu.edu.client.messengers.User;

import com.google.gwt.user.client.rpc.AsyncCallback;

public interface LoginServiceAsync {

	void getEnrolledCourses(String uid,	AsyncCallback<ArrayList<Course>> callback);
	void getAllCourses(AsyncCallback<ArrayList<Course>> callback);
	void insertUserInDB(User u, AsyncCallback<Boolean> callback);
	void storeUserInSession(User user, AsyncCallback<Boolean> callback);

    void getUserOpenId(AsyncCallback<String> callback);
	void getCoursesForApproval(String userid, AsyncCallback<ArrayList<Course>> callback);
	void loginFromSession(AsyncCallback<User> callback);
	void markAsEnrolled(Course c, String uid, AsyncCallback<Boolean> callback);

}
